package com.yykj.drup.server.service.feign;

import com.yykj.common.vo.ResultVO;
import com.yykj.drup.server.service.feign.fallback.PayCenterServerFeignFallBack;
import com.yykj.message.center.client.dto.TDMQMessageSendResult;
import com.yykj.pay.center.client.form.PayCreateForm;
import io.swagger.annotations.ApiOperation;
import org.apache.pulsar.client.api.PulsarClientException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.Valid;
import java.util.Map;

/**
 * @Author zeng
 * @Date 2022/3/25
 */
@FeignClient(name = "pay-center-server", fallbackFactory = PayCenterServerFeignFallBack.class)
public interface PayCenterServerFeign {


    @PostMapping("/pay/create")
    @ApiOperation(value = "微信小程序下单,返回支微信付信息")
    ResultVO<Map<String, String>> create(@RequestBody @Valid PayCreateForm payCreateForm);


}
